IHipFS

Provides the interface for the filesystem singleton

Members

Functions

absoluteExists
bool absoluteExists(string path)

Same as exists. But doesn't use install path. Limited and sync.

absoluteIsDir
bool absoluteIsDir(string path)

Same as isDir. But doesn't use install path. Limited and sync.

absoluteIsFile
bool absoluteIsFile(string path)

Same as isFile. But doesn't use install path. Limited and sync.

absoluteRead
bool absoluteRead(string path, void[] output)

Same as read. But doesn't use install path. Limited and sync.

absoluteRead
bool absoluteRead(string path, ubyte[] output)
Undocumented in source.
absoluteReadText
bool absoluteReadText(string path, string output)

Same as readText. But doesn't use install path. Limited and sync.

absoluteRemove
bool absoluteRemove(string path)

Same as remove. But doesn't use install path. Limited and sync.

absoluteWrite
bool absoluteWrite(string path, const(void)[] data)

Same as write. But doesn't use install path. Limited and sync.

exists
bool exists(string path)

Currently it is a sync operation.

getPath
string getPath(string path)

Gets a path from the installed path

getcwd
string getcwd()
isDir
bool isDir(string path)

Checks whether the path is a directory

isFile
bool isFile(string path)

Checks whether the path is a file

isPathValid
bool isPathValid(string path, bool expectsFile, bool shouldVerify)

Does some default validations in the path then it executes the extra ones.

isPathValidExtra
bool isPathValidExtra(string path)

Uses the only extra verifications to check if the path is valid

read
IHipFSPromise read(string path)

Encapsulates both the sync and async in the same API for reading a file

readText
IHipFSPromise readText(string path)

Same as .read

remove
bool remove(string path)

Removes from the current path

setPath
bool setPath(string path)

Sets the initial path. It can't be a path with higher access than install path. You may reset it to the install path by using setPath("")

write
bool write(string path, const(void)[] data)

Currently there is no way to know if the writing has finished. Uses the sync API.

writeCache
string writeCache(string cacheName, void[] data)

Uses a key/value pair for writing cache values.

Meta